Skip to content

Instantly share code, notes, and snippets.

@docularxu
docularxu / blog-claude-code-china-zh.md
Last active March 18, 2026 06:57
在中国使用 Claude Code 解决 403 错误 - 完整指南(中文版)

在中国使用 Claude Code 解决 403 错误 - 完整指南(中文版)

在中国使用 Claude Code 解决 403 错误

2026 年 2 月 12 日

如果你在中国尝试使用 Claude Code,大概率会撞上 403 错误。本文覆盖三种使用场景的解决方案:

  • macOS 终端 (shell) - 在终端里直接使用 claude 命令行
  • VS Code 终端 - 在 VS Code 内置终端里使用 claude 命令行

The Evolution of Policy Optimization: Understanding GRPO, DAPO, and Dr. GRPO's Theoretical Foundations

Introduction

This article serves as the theoretical companion to "Bridging Theory and Practice: Understanding GRPO Implementation Details in Hugging Face's TRL Library." While the companion piece focuses on implementation specifics, here we'll explore the mathematical foundations and conceptual evolution of these cutting-edge reinforcement learning algorithms for language models.

I'll examine three key algorithms that represent the rapid advancement in this field:

  • GRPO (Group Relative Policy Optimization): The pioneering approach from DeepSeek that established a new paradigm for training reasoning capabilities in LLMs

  • DAPO (Decouple Clip and Dynamic sAmpling Policy Optimization): An open-source system that scaled reinforcement learning for LLMs while addressing key limitations in GRPO

@HarmJ0y
HarmJ0y / PowerView-3.0-tricks.ps1
Last active March 18, 2026 06:56
PowerView-3.0 tips and tricks
# PowerView's last major overhaul is detailed here: http://www.harmj0y.net/blog/powershell/make-powerview-great-again/
# tricks for the 'old' PowerView are at https://gist.github.com/HarmJ0y/3328d954607d71362e3c
# the most up-to-date version of PowerView will always be in the dev branch of PowerSploit:
# https://github.com/PowerShellMafia/PowerSploit/blob/dev/Recon/PowerView.ps1
# New function naming schema:
# Verbs:
# Get : retrieve full raw data sets
# Find : ‘find’ specific data entries in a data set
@alvinsng
alvinsng / no-use-effect.md
Created March 17, 2026 20:00
Skill generated by Factory Droid
name description
no-use-effect
Enforce the no-useEffect rule when writing or reviewing React code. ACTIVATE when writing React components, refactoring existing useEffect calls, reviewing PRs with useEffect, or when an agent adds useEffect "just in case." Provides the five replacement patterns and the useMountEffect escape hatch.

No useEffect

@welmarr
welmarr / managing-multiple-java-versions-with-maven.md
Last active March 18, 2026 06:55
In this article, I explore the process of handling multiple versions of Java with Maven. Specifically, I focus on resolving an error that occurs when running a new Spring Boot application (version 3.0.1) when attempting to run the "mvn clean install" command line on a system with Java 11.

Managing Multiple Java Versions with Maven 🤹 (without modifying JAVA_HOME almost)

Today, I try to run a new spring boot application (<version>3.0.1</version>) on my Windows 11 but, when I perform the command line mvn clean install (mvn -version [Apache Maven 3.8.6 | Java version: 11.0.15.1]), I have the following issue 👇

Execution repackage of goal org.springframework.boot:spring-boot
-maven-plugin:3.0.1:repackage failed: Unable to load the mojo 'repackage' in the plugin 'org.springframework.boot:spring-boot-maven-plugin:3.0.1' due to an API incompatibility: org.codehaus.plexus.comp
onent.repository.exception.ComponentLookupException: org/springframework/boot/maven/RepackageMojo has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version
of the Java Runtime only recognizes class file versions up to 55.0
@lkraav
lkraav / installgapps-mount.sh
Last active March 18, 2026 06:53 — forked from raphendyr/sailfish_install_google_services.md
Google Play Services installation to Sailfish X
#!/bin/bash
#
# Install Google Apps into Sailfish OS AppSupport via bind-mounts.
# Based on raphendyr's guide, updated for SFOS 5.0 / Android 13.
#
# Instead of patching system.img, this populates /opt/gapps-for-appsupport/ and
# hooks into the AppSupport LXC container to bind-mount /product and
# /system/system_ext at startup. Survives SFOS updates; uninstall by
# removing the hook symlink.
#
@codegenixdev
codegenixdev / gist:7909ab552b6748ae838590480d90a96e
Created September 17, 2024 20:54
dynamic-form-code-snippets.md
Install packages:
```bash
npm i @emotion/react @emotion/styled @mui/icons-material @mui/material react-hook-form zod @hookform/resolvers
```
@svallory
svallory / Quake-style Hotkey Window for Wezterm.json
Created September 17, 2023 01:31
Quake-style Hotkey Window for Wezterm
{
"title": "Quake-style Hotkey Window for Wezterm",
"rules": [
{
"description": "Launch/show Wezterm if it is not in foreground",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "escape",
@swolfe2
swolfe2 / get_antigravity_usage.py
Created February 24, 2026 17:26
A dependency-free Python tool to monitor real-time Antigravity AI quotas and monthly credit usage.
import argparse
import json
import re
import subprocess
import sys
import urllib.error
import urllib.request
from datetime import datetime
from typing import Dict, List, Optional, Tuple, Any, cast
site:*/sign-in
site:*/account/login
site:*/forum/ucp.php?mode=login
inurl:memberlist.php?mode=viewprofile
intitle:"EdgeOS" intext:"Please login"
inurl:user_login.php
intitle:"Web Management Login"
site:*/users/login_form
site:*/access/unauthenticated
site:account.*.*/login